package xin.ryven.car.android.api

import retrofit2.http.GET
import retrofit2.http.Query
import xin.ryven.car.android.data.PlaylistResponse
import xin.ryven.car.android.data.VersionInfo
import xin.ryven.car.android.data.CoverResponse

interface ApiService {
    @GET("api/music/playlist")
    suspend fun getPlaylist(): PlaylistResponse

    @GET("api/music/covers")
    suspend fun getCovers(): CoverResponse

    @GET("app/version")
    suspend fun checkUpdate(
        @Query("platform") platform: String = "Android",
        @Query("app") app: String = "lexus_play"
    ): VersionInfo
} 